package com.jasen.springcloud;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * @MapperScan:
 *  扫描Mybatis的Dao接口
 *
 * @EnableEurekaClient:
 *  启动Eureka客户端，自动向Eureka注册自己
 *
 * @EnableDiscoveryClient:
 *  启用服务发现客户端
 */
@SpringBootApplication
@MapperScan("com.jasen.*.mapper")
@EnableEurekaClient
@EnableDiscoveryClient
public class DeptProvider8001_App
{
    public static void main( String[] args )
    {
        SpringApplication.run(DeptProvider8001_App.class, args);
    }
}
